arm: Add simple cpu_{sibling, core}_mask
authorIan Campbell <ian.campbell@citrix.com>
Tue, 26 Jun 2012 15:23:54 +0000 (16:23 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 26 Jun 2012 15:23:54 +0000 (16:23 +0100)
commitfdffada5f27e7d1dff55da4db74a8a3f2a7437f9
tree4d2fad174a4a3b710093d1301aca3fb10da9ac18
parentaa25a619d37b332446cb93828f9ac26160fa239d
arm: Add simple cpu_{sibling, core}_mask

This needs to be done for all cpus. The allocations require smp_prepare_cpus
to be called a bit later on.

In a previous version of this patch these maps were being zeroed (instead of
setting the CPU itself in them). This in turn causes cpumask_first to return
NR_CPUS, which in turn was causing default_vcpu0_location to misbehave and
read off the end of its cnt array.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/dummy.S
xen/arch/arm/setup.c
xen/arch/arm/smpboot.c